class SelectProductTypeModel {
  String jumpPosition;
  int orderNum;
  int pid;
  int showCate;
  String jumpUrl;
  Null enabled;
  String q;
  String name;
  String thum;
  int id;
  int ignoreParentType;
  int showImg;
  List<SelectProductTypeModel> child;

  SelectProductTypeModel(
      {this.jumpPosition,
        this.orderNum,
        this.pid,
        this.showCate,
        this.jumpUrl,
        this.enabled,
        this.q,
        this.name,
        this.thum,
        this.id,
        this.ignoreParentType,
        this.showImg,
        this.child});

  SelectProductTypeModel.fromJson(Map<String, dynamic> json) {
    jumpPosition = json['jumpPosition'];
    orderNum = json['orderNum'];
    pid = json['pid'];
    showCate = json['showCate'];
    jumpUrl = json['jumpUrl'];
    enabled = json['enabled'];
    q = json['q'];
    name = json['name'];
    thum = json['thum'];
    id = json['id'];
    ignoreParentType = json['ignoreParentType'];
    showImg = json['showImg'];
    if (json['child'] != null) {
      child = new List<SelectProductTypeModel>();
      json['child'].forEach((v) {
        child.add(new SelectProductTypeModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['jumpPosition'] = this.jumpPosition;
    data['orderNum'] = this.orderNum;
    data['pid'] = this.pid;
    data['showCate'] = this.showCate;
    data['jumpUrl'] = this.jumpUrl;
    data['enabled'] = this.enabled;
    data['q'] = this.q;
    data['name'] = this.name;
    data['thum'] = this.thum;
    data['id'] = this.id;
    data['ignoreParentType'] = this.ignoreParentType;
    data['showImg'] = this.showImg;
    if (this.child != null) {
      data['child'] = this.child.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Child {
  String jumpPosition;
  int orderNum;
  int pid;
  int showCate;
  Null jumpUrl;
  Null enabled;
  String q;
  String name;
  String thum;
  int id;
  int ignoreParentType;
  int showImg;
  Null child;

  Child(
      {this.jumpPosition,
        this.orderNum,
        this.pid,
        this.showCate,
        this.jumpUrl,
        this.enabled,
        this.q,
        this.name,
        this.thum,
        this.id,
        this.ignoreParentType,
        this.showImg,
        this.child});

  Child.fromJson(Map<String, dynamic> json) {
    jumpPosition = json['jumpPosition'];
    orderNum = json['orderNum'];
    pid = json['pid'];
    showCate = json['showCate'];
    jumpUrl = json['jumpUrl'];
    enabled = json['enabled'];
    q = json['q'];
    name = json['name'];
    thum = json['thum'];
    id = json['id'];
    ignoreParentType = json['ignoreParentType'];
    showImg = json['showImg'];
    child = json['child'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['jumpPosition'] = this.jumpPosition;
    data['orderNum'] = this.orderNum;
    data['pid'] = this.pid;
    data['showCate'] = this.showCate;
    data['jumpUrl'] = this.jumpUrl;
    data['enabled'] = this.enabled;
    data['q'] = this.q;
    data['name'] = this.name;
    data['thum'] = this.thum;
    data['id'] = this.id;
    data['ignoreParentType'] = this.ignoreParentType;
    data['showImg'] = this.showImg;
    data['child'] = this.child;
    return data;
  }
}